package com.cooge.collection.util;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

public class HtmlUtil {

	public static Elements HtmlDownload(String url, String tag) {

		 
		Document doc = null;
		try {
			doc = Jsoup.connect(url).get();
		} catch (IOException e) {

			e.printStackTrace();
		}
		String s[] = tag.split(" ");
		Elements eles = DomUtil.Domanalysis(doc, s);
		return eles;
	}

}
